package cool.mylog.mylog2end.controller;

import cool.mylog.mylog2end.bean.Log;
import cool.mylog.mylog2end.bean.User;
import cool.mylog.mylog2end.mapper.LogMapper;
import cool.mylog.mylog2end.mapper.UserMapper;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * test
 */
@RestController
@RequestMapping("test")
public class TestController {
    @Resource
    LogMapper logMapper;

    @Resource
    UserMapper userMapper;

    /**
     * hello 测试后端服务是否正常访问
     * @return Hello World!
     */
    @RequestMapping("hello")
    public String test() {
        System.out.println("Hello World!");
        return "Hello World!";
    }

}
